<?php

require_once 'init.php';

$page = cf\api\page\get('main');

$smarty->assign('page',$page);
$smarty->assign('pageText',cf\api\page\getText($page['id']));

$smarty->assign('groups',cf\api\shop\getCategoriesTree(null,false,1));

$smarty->display('index.tpl');
?>